package com.biz.primus.ms.coupon.event.couponType;

import com.biz.primus.ms.base.event.LocalEvent;
import com.biz.primus.ms.coupon.dao.po.CouponType;
import java.util.List;
import lombok.Getter;

/**
 * 更新优惠券类型状态事件
 *
 * @author david-liu
 */
@Getter
public class UpdateCouponTypeStatusEvent extends LocalEvent {

    private static final long serialVersionUID = 8604163026537629805L;

    private List<CouponType> couponTypeList;

    private Boolean status;

    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public UpdateCouponTypeStatusEvent(Object source, List<CouponType> couponTypes, Boolean status) {
        super(source);
        this.couponTypeList = couponTypes;
        this.status = status;
    }
}
